package models;

import java.util.*;

import javax.persistence.*;

import play.data.validation.Constraints.Required;
import play.db.ebean.Model;

@Entity
public class Profile extends Model{

	@Id
	public Long id;
		
	public String dpkey;
	public String dpSecret;
	
	public static Finder<Long, Profile> find = new Finder (Long.class, Profile.class);
	
	public Profile(){
		
	}
	
	public Profile(Long id){
		this.id = id;
	}
	
	public static List<Profile> all(){
		return find.all();
	}

	public static Profile find(Long id) {
		return find.byId(id);
	}
	
	public String toString(){
		return id + "";
	}
}